package com.sinbader.xiaole.common.mapper;

import com.sinbader.xiaole.common.entity.StockLog;
import com.sinbader.xiaole.common.model.params.StockLogParam;
import com.sinbader.xiaole.common.model.result.StockLogResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 库存变更记录 Mapper 接口
 */
public interface StockLogMapper extends BaseMapper<StockLog> {

    /**
     * 获取列表
     */
    List<StockLogResult> customList(@Param("paramCondition") StockLogParam paramCondition);

    /**
     * 获取map列表
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") StockLogParam paramCondition);

    /**
     * 获取分页实体列表
     */
    Page<StockLogResult> customPageList(@Param("page") Page page, @Param("paramCondition") StockLogParam paramCondition);

    /**
     * 获取分页map列表
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") StockLogParam paramCondition);

}
